package com.intretech.umsin.pay.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @version V1.0
 * @ClassName: AlipayProperties
 * @Description: 功能描述
 * @author: 李启联
 * @date: 2022-8-12 8:14
 * @Copyright: Copyright (c) 2022
 */
@ConfigurationProperties(prefix = "intretech.umsin.alipay")
@Component
public class AlipayProperties {

    //在支付宝创建的应用的id
    private   String app_id ="2021000121645167";

    // 商户私钥，您的PKCS8格式RSA2私钥
    private  String merchant_private_key="MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDJd0lTriS5oa/4M3lV76/rUZ8DhFSJgBTL2C7XgDK3AgEE8GYNkBUtBck5E/c3vv9svWuujtMvcY/URALCJRXfn586apSxZai3mnVhI9RYI48I/Sge5SqKigpdt9vHeWLx/HUI0dPsk1gxobAsNjJrIyrzyiq138TGVRHwpIEQ/TEktZ5x/AOoMmkquarJ+MupisCTgB57jlUOV/TKnkx9WX5x6AFd406gfI6hE4zXYuNiNbLN94RhfnzBYQWd5c85hh8I+7Js4+TN7EUC21pFIRN52C3cQ6V89KXwCsxFhp84zY4gPhh0oXrqxnlW2i8P5eqO+oqjPY2YsqrJOxBvAgMBAAECggEAbFoibsX27HuAN53/gO+DDq18NxkBml3vUV64eqBxJioGwFBGor6+FNPK0E7jo/CuUR5i/qPEAv0xnLjjPuVRKU8hBPrzc6E4J18ECDWL68dcEzqMTGl2AsKRJqxOoK6xP3JGw3KOZussAK10IaMYZLSqUimF5QEvRHfWSTVAURDW6p6BVE0CYiKJZdLmfhtlkz4EN2AseZ0JqURwJHR6oPuihcmNbGvUnLcHaTutQuEWgIU456IRPvOFb52MsBPieOWMaj0EVB7bVAfHRiisqRfKXg1lktw3LiS90HvH0nayXgQjeHTKHqguxCsRC+agHf00hLpv04LhU/XjncDakQKBgQDqKyN3KWVX8DQe91R2nK2iD4mjRl7zQunJXfdDMsPNkz8vKcXD4NMibji44njyizjuzPF6wWakYS8sCExDfhHkaQcdP81e1odx6aVZtQD+eCVsstfN9oZC68t1uPd5Bpzp5Gx1TYA1gpYe1xOF06avMeCZ038/RA6mbxsjBSfmVwKBgQDcP6Q9H/ijBhm7o6/WHuJySufZrfyK3qDYxsxHKzVmM8jHTN5jLxBLvjRR+DEcY4xd3uxA2H19qN81KKYJ2XWcLeByDVOrPJEjiWL+7eTpwET5xevFqGmMLnxms2R3LJd/0zAntyIRjJIFOviwdAQ9IymXK3EI9YP529FclSFnqQKBgHnGHzZbp6EYf/JOinT4O29YhyoKcVwtwuf93pTqdFqWpTgAkCCx7PotuX+j/mObNOsyVq2Qn7EB/Qb39bjveZx/Zby3LjSQeXUqnNtOvoqWrledlY49EksA1hiNLNyaLMWRDTnfKLorA6hcDoH8s+TNmlBEZRrgaIHyq3kFuF8XAoGAa+T9ZzhHTE2Lw6EfXYyJsCXDyJ50De+b6jYREng3U5bgr8mXVA1VNVW7OcCVBmw58i5nnCix6SIWHmuIU2DlPZo3zod6ynMEQt1l0q7lqiEXaSitJIopEpQfOwx8lekRWnwxpfMPzHsJeWh3NbHP9cdI85ZDbHkhqwAlYu5ni+kCgYA9rTjhG45ds9ntFLGn+s7LZizctW8BTPTPbaTOflYMtyo98EisIHz7XJM1iw7xt2xWbr9IONIMkKEQ7/aq8v/VuTDSbLwM2Gu9SBIts0LsplFsb+Z+bsWSR8A79QN5ZoEU0eVt46bvSOm0SKJdoPX4IgiONo9WkRRK1XhVuVolBA==";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    private  String alipay_public_key="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAk7xgvIIr8LfXq6PuycSYydzvx/Hdd2kPnp8AIrFvTQGgyfXXlYrAbp6TwZrDrkbge1LUeeQYElXjAf9fuy+dEyUm94UfrMcEuDFixJ8O+ood+qPABcEi5PKopPoBG0sQTzFUgxHS5jQrWsLdNI3UlkyoGRZPxkmjZ/ZPljKoJKTeR4GZr7QZBslTqgqYaX0kPiDSyTODBH82EdlMZRItJQKzeJ3t2VOfkXr9Ie9wfAeWIg/yV0SKfdPAPc0N0E6C8EUcONRKGNfyBjXuBDQvUn12QHuL0GsG0QNaaTSEFSv6nzAalW5Lo9+c4fhSb5Am2HHVkO1kb6582A/mR6NzoQIDAQAB";

    // 服务器[异步通知]页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    // 支付宝会悄悄的给我们发送一个请求，告诉我们支付成功的信息
    private  String notify_url;

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    //同步通知，支付成功，一般跳转到成功页
    private  String return_url;

    // 签名方式
    private  String sign_type = "RSA2";

    // 字符编码格式
    private  String charset = "utf-8";

    // 支付宝网关； https://openapi.alipaydev.com/gateway.do
    private  String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";


    public String getApp_id() {
        return app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    public String getMerchant_private_key() {
        return merchant_private_key;
    }

    public void setMerchant_private_key(String merchant_private_key) {
        this.merchant_private_key = merchant_private_key;
    }

    public String getAlipay_public_key() {
        return alipay_public_key;
    }

    public void setAlipay_public_key(String alipay_public_key) {
        this.alipay_public_key = alipay_public_key;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }

    public String getReturn_url() {
        return return_url;
    }

    public void setReturn_url(String return_url) {
        this.return_url = return_url;
    }

    public String getSign_type() {
        return sign_type;
    }

    public void setSign_type(String sign_type) {
        this.sign_type = sign_type;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getGatewayUrl() {
        return gatewayUrl;
    }

    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }

    public AlipayProperties() {
    }

    @Override
    public String toString() {
        return "AlipayProperties{" +
                "app_id='" + app_id + '\'' +
                ", merchant_private_key='" + merchant_private_key + '\'' +
                ", alipay_public_key='" + alipay_public_key + '\'' +
                ", notify_url='" + notify_url + '\'' +
                ", return_url='" + return_url + '\'' +
                ", sign_type='" + sign_type + '\'' +
                ", charset='" + charset + '\'' +
                ", gatewayUrl='" + gatewayUrl + '\'' +
                '}';
    }
}